#ifndef LOGINMAINWINDOW_H
#define LOGINMAINWINDOW_H

#include <QMainWindow>
#include "onlinemusicwidget.h"

#include <QApplication>
#include <QSqlDatabase> //数据驱动
#include <QSqlQuery> //数据库执行语句

#include <QPushButton>

#include <QSystemTrayIcon>

#include <QCloseEvent>

#include <QMenu>

#include <QAction>
namespace Ui {
class LoginMainWindow;
}

class LoginMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit LoginMainWindow(QWidget *parent = nullptr);
    ~LoginMainWindow();
    //处理播放器背景画布
    void paintEvent(QPaintEvent *event);
protected:
    /*
    void closeEvent(QCloseEvent *event)override;
    void iconActivated(QSystemTrayIcon::ActivationReason reason);
    void showNormal();
    void hideToTray();
    */
private slots:
    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_Login_clicked();

    void sql_Init();

    void on_pushButton_singUp_clicked();

private:
    Ui::LoginMainWindow *ui;
    int flag = 0;
    //QSystemTrayIcon *trayIcon;
};

#endif // LOGINMAINWINDOW_H
